<%= form_for [:admin, @user, @bonus_record], html: { class: "card" } do |f| %>
  <div class="card-body">
    <h3 class="card-title"><%= @bonus_record.new_record? ? "创建" : "修改" %>分红记录</h3>
    <div class="row">
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">分红日期</label>
          <%= f.date_field :give_at, class: "form-control" %>
        </div>
      </div>
      <div class="col-md-8">
        <div class="form-group">
          <label class="form-label">分红内容</label>
          <%= f.text_field :content, class: "form-control" %>
        </div>
      </div>
    </div>
  </div>
  <div class="card-footer text-right">
    <%= f.submit "保 存", class: "btn btn-primary" %>
  </div>
<% end %>